﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            string connectionString = "data source =.; Initial Catalog =MyDB_O;Integrated security =True;";
            SqlConnection connection = new SqlConnection(connectionString);

        string query = "insert into MyTable(Name, LastName)VALUES ('oo', 'ssss')";
           // string query = "insert into MyTable(Name, LastName)VALUES (10, 10)";
            SqlCommand command = new SqlCommand(query, connection);

            connection.Open();
            command.ExecuteNonQuery();
            connection.Close();
        }
    }
}
